package com.gildedrose;

public class AgedBrie extends Item{

    public AgedBrie(String name, int sellIn, int quality) {
        super("Aged Brie", sellIn, quality);
    }

    public AgedBrie(int sellIn, int quality) {
        super("Aged Brie", sellIn, quality);
    }

    @Override
    public void updateQualityAfterExpiration() {
        this.quality = Math.min(50, this.quality + 1);
    }

    @Override
    public void updateQuality() {
        this.quality = Math.min(50, this.quality + 1);
    }
}
